-- GENERATED SPELL FOR [Malicious Spirit] --


function spell0_14513(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13738,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14513', 15000, 1)
end

function Sorts_14513(pUnit, Event)
local choix_sorts_14513 = math.random(0, 0)
if choix_sorts_14513 == 0 then
pUnit:RegisterEvent('spell0_14513', 1, 1)
end
end

function mob14513_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14513', math.random(1500, 3000), 1)
end

function mob14513_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14513_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14513_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14513, 1, 'mob14513_Action')
RegisterUnitEvent(14513, 2, 'mob14513_Leave')
RegisterUnitEvent(14513, 3, 'mob14513_Kill')
RegisterUnitEvent(14513, 4, 'mob14513_Die')
